
function initialUeditor(id){

    /* here is a sample, not useable */
    /* sample start */
    var UEDITOR_HOME_URL  = ''
    var options = {
        imageUrl:UEDITOR_HOME_URL + "../yunserver/yunImageUp.php",
        imagePath:"http://",

        scrawlUrl:UEDITOR_HOME_URL + "../yunserver/yunScrawlUp.php",
        scrawlPath:"http://",

        fileUrl:UEDITOR_HOME_URL + "../yunserver/yunFileUp.php",
        filePath:"http://",

        catcherUrl:UEDITOR_HOME_URL + "php/getRemoteImage.php",
        catcherPath:UEDITOR_HOME_URL + "php/",

        imageManagerUrl:UEDITOR_HOME_URL + "../yunserver/yunImgManage.php",
        imageManagerPath:"http://",

        snapscreenHost:'ueditor.baidu.com',
        snapscreenServerUrl:UEDITOR_HOME_URL + "../yunserver/yunSnapImgUp.php",
        snapscreenPath:"http://",

        wordImageUrl:UEDITOR_HOME_URL + "../yunserver/yunImageUp.php",
        wordImagePath:"http://", //

        getMovieUrl:UEDITOR_HOME_URL + "../yunserver/getMovie.php",

    };
    /* sample end */

    window.ue = UE.getEditor(id, {
        /* simple sample */
        toolbars:[
            ['fullscreen', 'source', '|', 'undo', 'redo', '|',
            'bold', 'italic', 'strikethrough', 'removeformat', '|',
            'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', '|',
            'fontfamily', 'fontsize', 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify'],
            ['insertimage', 'emotion', 'link', 'unlink', 'anchor', '|',
            'horizontal', 'spechars', '|',
            'inserttable', 'deletetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|',
            'preview', 'searchreplace']
        ],

        // mini

        /*
        toolbars: [
            ['fullscreen', 'source', '|', 'undo', 'redo', '|', 'link', 'unlink',
            'removeformat', 'insertorderedlist', 'insertunorderedlist',
            'insertimage', 'spechars', '|', 'preview', 'searchreplace', 'sliderimage']
        ],
        */

        initialFrameWidth:"100%",
        elementPathEnabled: false,
        pasteplain: true,
        //wordCount: true,
        autoHeightEnabled: false,
        initialFrameHeight: 400,

        imageUrl: "/dashboard/qiniu/image/upload/",
        imagePath: "",

        imageManagerUrl: "/dashboard/qiniu/image/list/",
        imageManagerPath: "",
    })
}
